<?php /* Smarty version Smarty-3.1.18, created on 2015-04-21 12:01:40
         compiled from "/data/www/mystery/protected/modules/webadmin/views/netquestion/history_attach.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12316198345535cba4a49b67-32501720%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '029d74326b6a096e0aacd08b868aac2f54ac8a45' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/netquestion/history_attach.tpl',
      1 => 1426227617,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12316198345535cba4a49b67-32501720',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'net_info' => 0,
    'question_info' => 0,
    'subject_info' => 0,
    'list' => 0,
    'val' => 0,
    'key' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5535cba4acca20_09450272',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5535cba4acca20_09450272')) {function content_5535cba4acca20_09450272($_smarty_tpl) {?><html>
    <head>
        <script src="/js/jquery-1.11.1.min.js"></script>	
	<script src="/js/mediaelement-and-player.min.js"></script>
	<link rel="stylesheet" href="/css/mediaelementplayer.min.css" />
        <title>附件</title>
        <style>
            table{
                font-size:12px;                
            }
        </style>
    </head>
    <body>
        <h2><?php if ($_smarty_tpl->tpl_vars['net_info']->value) {?><?php echo $_smarty_tpl->tpl_vars['net_info']->value['network_name'];?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['question_info']->value) {?>--<?php echo $_smarty_tpl->tpl_vars['question_info']->value['question_name'];?>
<?php }?><?php if ($_smarty_tpl->tpl_vars['subject_info']->value) {?>--<?php echo $_smarty_tpl->tpl_vars['subject_info']->value['title'];?>
<?php }?></h2>
        <?php if ($_smarty_tpl->tpl_vars['list']->value) {?>
        <table> 
        <tr id="nqa_<?php echo $_smarty_tpl->tpl_vars['val']->value['nqa_id'];?>
"><th>类型序号</th><th>附件</th><th>操作</th></tr>
        <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
        <tr>
            <?php if ($_smarty_tpl->tpl_vars['val']->value['extension']=='img') {?>
            <td><b style="color:red;">图片<?php echo $_smarty_tpl->tpl_vars['key']->value+1;?>
</b></td><td><img src='<?php echo $_smarty_tpl->tpl_vars['val']->value['fileurl'];?>
' /></td><td><a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['url'];?>
" target="_blank">下载</a></td>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['val']->value['extension']=='video') {?>
            <td><b style="color:red;">视频<?php echo $_smarty_tpl->tpl_vars['key']->value+1;?>
</b></td><td><video width="640" height="360" src="<?php echo $_smarty_tpl->tpl_vars['val']->value['fileurl'];?>
" type="video/mp4" id="player1" poster="../media/echo-hereweare.jpg" 
                                  controls="controls" preload="none"></video></td><td><a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['url'];?>
" target="_blank">下载</a></td>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['val']->value['extension']=='audit') {?>
            <td><b style="color:red;">音频<?php echo $_smarty_tpl->tpl_vars['key']->value+1;?>
</b></td><td><audio id="player2" src="<?php echo $_smarty_tpl->tpl_vars['val']->value['fileurl'];?>
" type="audio/mp3" controls="controls"></audio></td><td><a href="<?php echo $_smarty_tpl->tpl_vars['val']->value['url'];?>
" target="_blank">下载</a></td>
            <?php }?>
        </tr>
        <?php } ?>
        </table>
        <?php }?>
<script>
$('audio,video').mediaelementplayer();
    </body>
</html><?php }} ?>
